/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package brakecontinue;

/**
 *
 * @author c0220909
 */
public class Principal {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
 /*       for (int i = 0; i < 10; i++) {
            System.out.println("Inside loop");
            continue;
        }
        for (int i = 0; i < 10; i++) {
            System.out.println("Inside loop");
            if (foo.doStuff() == 5) {
                continue;
            }
// more loop code, that won't be reached when the above if
// test is true
        }*/
        boolean problem = true;
        while (true) {
            if (problem) {
                System.out.println("There was a problem");
                break;
            }
        }
// next line of code

    }
}
